home *** CD-ROM | disk | FTP | other *** search
/ Amiga Collections: Camelot / Camelot 075 (1990-05)(Swedish User Group of Amiga)(SE)(PD)[WB].zip / Camelot 075 (1990-05)(Swedish User Group of Amiga)(SE)(PD)[WB].adf / p2c / Makefile.amiga < prev    next >
Makefile  |  1990-05-13  |  2KB  |  60 lines

  1. # Makefile for "p2c", the Pascal to C translator.
  2. #  Copyright (C) 1989 David Gillespie.
  3. #  Author's address: daveg@csvax.caltech.edu; 256-80 Caltech/Pasadena CA 91125.
  4.  
  5. # This program is free software; you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation (any version).
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13.  
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program; see the file COPYING.  If not, write to
  16. # the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  17.  
  18. # Amiga Port by G. R. Walter
  19.  
  20. # This file compiles and installs p2c in the "home" subdirectory of this
  21. # directory, then runs it on various example programs in the "examples"
  22. # subdirectory.  To install a permanent, public copy of p2c, see "README"
  23. # and src/Makefile.
  24.  
  25. # Make sure you install before you test.
  26. test:
  27.     assign P2C: ""
  28.     echo ""
  29.     echo "Translating and compiling example files..."
  30.     cd examples
  31.     make comp
  32.     cd /
  33.     echo ""
  34.     echo "Running the factorial example..."
  35.     examples/fact
  36.     echo ""
  37.     echo "Running the 'e' computation example..."
  38.     examples/e
  39.     echo ""
  40.     echo "Running the self-printing Pascal example..."
  41.     examples/self >examples/self.out
  42.     type examples/self.out
  43.     diff examples/self.p examples/self.out
  44.     echo ""
  45.     echo "Also try 'cref' and 'basic' in the examples directory."
  46.  
  47. install:
  48.     cd src
  49.     make install
  50.     cd /
  51.  
  52. clean:
  53.     cd src
  54.     make clean
  55.     cd /
  56.     cd examples
  57.     make clean
  58.     cd /
  59.     delete p2c home all quiet
  60.